<?php
if (!defined('WEB_ROOT')) {
	exit;
}

// make sure a product id exists
if (isset($_GET['br_Id']) && $_GET['br_Id'] > 0) {
	$br_Id = $_GET['br_Id'];
} else {
	// redirect to index.php if product id is not present
	header('Location: index.php');
}

$sql = "SELECT br_status, br_address, br_name, br_id FROM tbl_branch  WHERE br_id = '$br_Id'";
$result = mysql_query($sql) or die('Cannot get product. ' . mysql_error());

$row = mysql_fetch_assoc($result);
extract($row);

//if ($pd_image) {
//	$pd_image = WEB_ROOT . 'images/product/' . $pd_image;
//} else {
//	$pd_image = WEB_ROOT . 'images/no-image-large.png';
//}


?>
<p>&nbsp;</p>
<form action="processProduct.php?action=addBranch" method="post" enctype="multipart/form-data" name="frmAddProduct" id="frmAddBranch">
 <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
  <tr> 
   <td width="150" class="label">Branch Name</td>
   <td class="content"><?php echo $br_name; ?></td>
  </tr>
   <tr>
   <td width="150" class="label">Branch Address</td>
   <td class="content"> <?php echo $br_address; ?></td>
  </tr>
  <tr> 
   <td width="150" class="label">Branch Status</td>
   <td class="content"> <?php echo $br_status; ?></td>
  </tr>




 </table>
 <p align="center"> 
  <input name="btnModifyBranch" type="button" id="btnModifyBranch" value="Modify Branch" onClick="window.location.href='index.php?view=modify&br_Id=<?php echo $br_Id; ?>';" class="box">
  &nbsp;&nbsp;
  <input name="btnBack" type="button" id="btnBack" value=" Back " onClick="window.history.back();" class="box">
 </p>
</form>
